package com.payment.service.impl;

import com.payment.entity.common.PartnerPackage;
import com.payment.mapper.PartnerPackageMapper;
import com.payment.service.PartnerPackageService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class PartnerPackageServiceImpl implements PartnerPackageService {
    @Resource
    PartnerPackageMapper partnerPackageMapper;

    @Override
    public List<PartnerPackage> queryPackageByPartnerCode(String partnerCode, String partnerScope) {
        return partnerPackageMapper.queryPackageByPartnerCode(partnerCode,partnerScope);
    }

    @Override
    public List<PartnerPackage> queryPackageByCode(String packageCode, String partnerCode,String partnerScope) {
        return partnerPackageMapper.queryPackageByCode(packageCode,partnerCode,partnerScope);
    }

    @Override
    public List<PartnerPackage> queryPackageListByCode(String partnerCode, String packageCode, String salesType) {
        return partnerPackageMapper.queryPackageListByCode(partnerCode,packageCode,salesType);
    }

    @Override
    public String queryPackageNameEN(String packageCode, String partnerCode) {
        return partnerPackageMapper.queryPackageNameEN(packageCode,partnerCode);
    }

    @Override
    public String queryBuyType(String packageCode, String partnerCode) {
        return partnerPackageMapper.queryBuyType(packageCode,partnerCode);
    }

    @Override
    public String queryPackageNameByCode(String packageCode, String partnerCode) {
        return partnerPackageMapper.queryPackageNameByCode(packageCode,partnerCode);
    }

    @Override
    public String queryPriceType(String packageCode, String partnerCode) {
        return partnerPackageMapper.queryPriceType(packageCode,partnerCode);
    }

    @Override
    public List<PartnerPackage> queryMoreSpecailPackage(String partnerCode, String partnerScope, String salesType) {
        return partnerPackageMapper.queryMoreSpecailPackage(partnerCode,partnerScope,salesType);
    }

    @Override
    public List<PartnerPackage> queryListByCode(String partnerCode, String packageCode) {
        return partnerPackageMapper.queryListByCode(partnerCode,packageCode);
    }

    @Override
    public List<PartnerPackage> queryPackageByCondition(String partnerCode, String deviceCode, String country, String continent, String packageType, String salesType) {
        return partnerPackageMapper.queryPackageByCondition(partnerCode,deviceCode,country,continent,packageType,salesType);
    }

    @Override
    public List<PartnerPackage> queryPackageByConditionEN( String partnerCode,String deviceCode, String country, String continent, String packageType, String salesType) {
        return partnerPackageMapper.queryPackageByConditionEN(partnerCode,deviceCode,country,continent,packageType,salesType);
    }

    @Override
    public String querySalesType(String packageCode, String partnerCode) {
        return partnerPackageMapper.querySalesType(packageCode,partnerCode);
    }

    @Override
    public List<PartnerPackage> querySimplePackageListByPartnerCode(String partnerCode,String deviceCode) {
        return partnerPackageMapper.querySimplePackageListByPartnerCode(partnerCode,deviceCode);
    }

    @Override
    public int findCountByCondition(String packageCode, String partnerCode) {
        return partnerPackageMapper.findCountByCondition(packageCode,partnerCode);
    }

    @Override
    public void storagePackage(PartnerPackage product) {
        partnerPackageMapper.storagePackage(product);
    }

    @Override
    public String queryPackageStatusByCode(String packageCode, String partnerCode) {
        return partnerPackageMapper.queryPackageStatusByCode(packageCode,partnerCode);
    }

    @Override
    public void updatePackageStatus(PartnerPackage product) {
        partnerPackageMapper.updatePackageStatus(product);
    }

    @Override
    public List<PartnerPackage> queryTejiaPackageByCode(String partnerCode, String deviceCode) {
        return partnerPackageMapper.queryTejiaPackageByCode(partnerCode,deviceCode);
    }

    @Override
    public String queryPackageNameAs(String partnerCode, String packageCode) {
        return partnerPackageMapper.queryPackageNameAs(partnerCode,packageCode);
    }

    @Override
    public String queryPackageTypeByCode(String packageCode, String partnerCode) {
        return partnerPackageMapper.queryPackageTypeByCode(packageCode,partnerCode);
    }

}
